//
//  BaseViewController.h
//  UDuo
//
//  Created by 铅笔 on 15/11/17.
//  Copyright © 2015年 铅笔. All rights reserved.
//
//存放公用设置
#import <UIKit/UIKit.h>

@interface BaseViewController : UIViewController


@property (nonatomic,strong) UIButton *button_back;

+(void)showMessage:(NSString *)message;

+(void)showSimpleAlertView:(NSString*)message andWithTitle:(NSString *)title;

/**
 *验证手机号是否正确
 */
+ (BOOL)isMobileNumber_str:(NSString *)mobileNum;

/**
 * 字体颜色
 */
+ (UIColor *)colorWithHexString:(NSString *) stringToConvert;

/**
 *计算文字的 尺寸
 */
+ (CGSize)sizeWithText:(NSString *)text font:(UIFont *)font maxW:(CGFloat)maxW maxH:(CGFloat)maxH;

/**
 *跳转到 相应 的 界面
 */
//+ (void) JumpToTheCorrespondingPage:(UIViewController *)viewController;

/**
 *SHA1加密方式
 */
+ (NSString *) sha1:(NSString *)input;

/**
 * 身份证识别
 */
+(BOOL)checkIdentityCardNo:(NSString*)cardNo;

/**
 * 跳转到想要进入的页面
 */
+(void)viewJumpNext:(UIViewController *)jumpstr;

@end
